package diffOfRemoteAndLocal;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;

@Stateless
@Remote(MyUserManagerRemote.class)
@Local(MyUserManagerLocal.class)
public class MyUserManagerBean implements MyUserManagerRemote,MyUserManagerLocal {

	@Override
	public void addUser(MyUser user) {
		System.out.println("用户以被保存，这是remote:"+user.getName());
	}

	@Override
	public void delUser(MyUser user) {
		System.out.println("用户以被删除，这是local:"+user.getName());
	}

}
